package com.luodeng.luodengprometheusdemo.web;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @desc:
 * @author: luodengxiong
 * @date: 2021-01-08 15:25:39
 **/
@Api(tags = "knife4j-3.0.2")
@RestController
@RequestMapping("/")
public class HomeController {

    @ApiOperation(value = "默认首页")
    @PostMapping("/index") //recommond use this method
    public String index() {

        return "我只是个首页啊";
    }

}
